package com.lwq.lwqmicoservice.gateway.config;

import com.lwq.lwqmicoservice.gateway.filter.CorsFilter;
import com.lwq.lwqmicoservice.gateway.filter.TokenFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2021/11/16
 */
@Configuration
public class WebConfig {

    @Bean
    public TokenFilter tokenFilter(){
        return new TokenFilter();
    }

    @Bean
    public CorsFilter corsFilter(){
        return new CorsFilter();
    }


}
